export default {
  // 波浪创建
  i (n: any, e: string) {
    e.split('').forEach((q, qi) => {
      const a = document.createElement('span')
      a.innerHTML = e[qi]
      n.appendChild(a)
    })
  },
  // 波浪文字触发
  wave () {
    const n = document.getElementsByClassName('txtwav')
    const a = n[0]
    const r = (a.textContent as string).trim()
    a.innerHTML = ''
    this.i(a, r)
  }
}
